#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-5;

int main() {
    ios_base::sync_with_stdio(false);cin.tie(nullptr);
    int K;
    while(cin >> K){
        vector<pair<int, int> > ans;
        for (int i = K+1; i <= 2*K; ++i) {
            int nume = i * K;
            int deno = i - K;
            if(nume % deno == 0)
                ans.emplace_back(nume/deno, i);
        }
        cout << ans.size() << "\n";
        for (auto &p:ans) cout << "1/" << K << " = 1/" << p.first << " + 1/" << p.second << '\n';
    }
    return 0;
}